package ar.com.laley.centro.beans;

import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;

public class HibernateTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Session s = new Configuration().configure().buildSessionFactory().openSession();
		Transaction t = s.beginTransaction();
		Facultad c = new Facultad();
		c.setFacultadNombre("asdasfda");
		s.save(c);
		t.commit();
		s.close();
	}

}
